// TOWN DIALOGUE SCRIPT
// 	Town 5: Castle Putideum L2

// This is the dialogue for this town.
// You can use states numbered from 1 to 99.

begintalkscript;

variables;

// *** Collatinus ***
	
begintalknode 1;
	state = -1;
	personality = 50;
	nextstate = 1;
	condition = 1;
	question = "Collatinus";
	text1 = "Collatinus's wrists and ankles are bound by chains to the wall, his skin worn, past struggling or the useless exercise of too-weak muscles against metal. He feebly raises his head to look at you.";
	text2 = "But then he cowers, as if thinking that you are another of Putidus's agents sent to torture him. He must not recognize you from your meeting in Umbratium.";
	text3 = "His face is badly bruised, and his shoulders and back are covered with marks from the whip. His skin has marks all over that seem to come from hot metal or pincers.";
	
begintalknode 2;
	state = 1;
	personality = 50;
	nextstate = 2;
	condition = 1;
	question = "Collatinus! How did you end up here?";
	text1 = "He looks closer at you and seems to remember who you are. His story spills from his mouth.";
	text2 = "_After you left the first time... Putidus came. He took my wife._ The words come out only with a struggle. _Then he came back later... and took me. He brought me here... chained me to this wall... and has beaten me with those whips. Tortured me._";

begintalknode 3;
	state = 2;
	personality = 50;
	nextstate = 3;
	condition = 1;
	question = "But why? What does he want from you?";
	text1 = "_I... don't know. When he first brought me here... he tore off my tunic... and looked at my body. He said, 'Flawless. It's perfect.' And he... looked down at himself... as if he would vomit. He grabbed the whip... and started beating me.";
	text2 = "_I screamed at him... asked him why... what had I done... but he did not answer... just kept beating me._ He coughs, a wet, wheezing noise that shakes his whole body. _I don't know what he wants._";

begintalknode 4;
	state = 3;
	personality = 50;
	nextstate = 4;
	condition = 1;
	question = "What can I do?";
	text1 = "_You can't free me... unless you kill him. The keys are on his body. But I... want to ask you a favor._ He coughs again. _Please, do this for me. Lucretia is upstairs... nearby, but up many winding stairs. I saw him... take her up there._";
	text2 = "He breathes carefully, flinching with each breath, its agony playing across his face. _I fear he has done... something terrible. Please bring her down here to me. I need to know... that she is safe._";
	text3 = "His body sinks down, leaning on his chains. _Please do this. I just want... my wife back._ He falls silent.";
	code =
	set_flag(5,6,1);
	end();
break;

begintalknode 5;
	state = 1;
	personality = 50;
	nextstate = -1;
	condition = get_flag(7,2) == 1;
	question = "(Tell him what happened with Lucretia.)";
	text1 = "He listens with every fragment of his tattered energy as you tell him what she said, what you tried to tell her, and what she did. When you reach the point at which she slew herself on her bed, he falls to his knees.";
	text2 = "_Oh she was most heavenly true! At the Styx itself she, in the Elysians forever to be, murdered by him who claimed to make her more pure! His purity meant death. She was most virtuous without his purity._";
	text3 = "His head droops, his body hunched to the ground. He hangs from his chains limply, not speaking, not responding, just numb. You try to rouse him, but you can't.";
	code =
	set_flag(5,7,1);
	end();
break;

begintalknode 6;
	state = 1;
	personality = 50;
	nextstate = -1;
	condition = get_flag(7,4) == 1;
	question = "I murdered Lucretia.";
	text1 = "He stares at you, speechless. _You did what?_ He does not grow angry. His gaze breaks from you and falls to the ground. His body follows soon thereafter, hanging limp from his chains. He will not speak anymore.";
	code =
	set_flag(5,7,1);
	end();
break;

// *** Faustulus ***

begintalknode 10;
	state = -1;
	personality = 50;
	nextstate = 10;
	condition = 1;
	question = "Faustulus";
	text1 = "Faustulus doesn't even look up as you enter. His face is buried in his hands, and his body occasionally quivers with spasms. You clear your throat, and he looks up.";
	text2 = "Seeing you, he is taken utterly aback, his face paling and his hands quivering. He was tense when you met him before, but now he looks as though he has seen the very scythe of him who harvests us all, seen its edge hanging over his Damoclean head.";
	text3 = "_You!_ he says, one hand clenching hard and then unclenching. _You're not supp... supposed to be here! Go away, right now!_";
	text5 = "A shiver slides down the full length of Faustulus's body. _Go away,_ he pleads.";
	action = INTRO;
	
begintalknode 11;
	state = 10;
	personality = 50;
	nextstate = 11;
	condition = 1;
	question = "Faustulus! How did you get here?";
	text1 = "He groans in abject terror and agony. _I lost everything. That's how I came here._";

begintalknode 12;
	state = 11;
	personality = 50;
	nextstate = 10;
	condition = 1;
	question = "What do you mean?";
	text1 = "Faustulus shakes visibly. _I don't know what he intends, but he brought me here. And I... I am afraid. I f... fear that he will finish his destruction of Ateria by killing me. But I do not know, so I cannot act._";
	code =
	reset_dialog();
	add_dialog_str(0,"_I... I was a quaestor once. I was chosen to be a financial recordkeeper of the governor of the province D... Dacia. One of the Emperor's men chose me for the job. I was hap... happy at the time. It means I'll be in the Sena... Sen... Senate someday.",0);
	add_dialog_str(1,"_But then I was sent to Ateria. I met Lord Putidus, and he was very polite. He invited me back to Castle Putideum to have dinner and entertainment. I, of course, accepted.",0);
	add_dialog_str(2,"_When I arrived here, he dismissed my guards. He served me alone an extravagant feast. He hardly seemed to eat, but he served me large courses of the finest meats. After dinner, he told me to come with him outside; I had come on an auspicious day.",0);
	add_dialog_str(3,"_He took me northwest to the black spire, where he made me stay as he performed a ceremony to a god I'd never heard of. He sacrificed a boar and, in barbaric fashion, drank much of its blood. He chanted in the native language of this place, frenzied.",0);
	add_dialog_str(4,"_And then... he turned to me, his face ashen, his teeth grown unnaturally large, and he said to me, 'I have something that I may offer you, Faustulus.'",0);
	add_dialog_str(5,"_He offered me power, tremendous magical power, in exchange for free reign over the citizens of this area. He would terrorize the citizenry, and I would gain the power of the gods for looking the other way._ Faustulus shudders.",0);
	run_dialog(1);
	
	message_dialog("_I would not have accepted his offer,_ Faustulus continues raggedly, _but I knew that this employment was to be my last. I was not going to receive any promotion or greater job after working out here in this position that gives no honor.","_I... for many reasons, I accepted. And this arrangement continued for many years, but then Putidus requested that young soldiers from the heart of the empire be sent here. After your arrivals in Umbratium and Timoria, he destroyed those cities._");
break;

begintalknode 13;
	state = 10;
	personality = 50;
	nextstate = 10;
	condition = 1;
	question = "Will you help me bring Putidus to justice?";
	text1 = "_I c... cannot. I am as implicated as he is._ Suddenly he realizes that you mean to kill him here, rather than to bring him into a local court. His entire body jerks, contorting over to the left.";
	text2 = "_N... no! He is my l... lord. My master._ Faustulus coughs violently. _I am bound by fides to him. My loyalty is unw... unwavering. But I don't know if h... he is going to kill me as he has everyone else._";
	text3 = "His right hand trembles. _If you find evidah... evid... evidence that he is intending to kill me, then I w... will help you._";
	action = SET_SDF 5 11 1;
	
begintalknode 14;
	state = 10;
	personality = 50;
	nextstate = 10;
	condition = get_flag(0,7) > 0;
	question = "I found proof. Putidus wants you dead. (Lie to him.)";
	text1 = "He continues, _You must attack Putidus, and I will be right behind you. You cannot go in the front door of the throne room, however; you will not make it far that way without dying, and I need you to distract him.";
	text2 = "_There is a secret passage in a bedroom to the north. Use that to get right next to Putidus. Then I will be with you, and I will help you strike down this monster.";
	text3 = "_Now go. Be sure you remember what to do, because I cannot talk anymore; I must prepare._ He falls silent and will not talk with you anymore.";
	code = 
	reset_dialog();
	add_dialog_str(0,"_What? No!_ He listens in disbelief as you concoct a story about a note that you found that described a plan to kill him before sunset tomorrow. When you are done, he wails.",0);
	add_dialog_str(1,"_Oh, no, no, no! Until dusk to live? Blazing light of the sky, be banished forever and never again shine your revealing light upon my doomed frame! Let these clouds forever shade the sun so that night and day become one and tomorrow's dusk never comes!",0);
	add_dialog_str(2,"_One day to live. This is justice divine, nemesis for my hubris, retribution for seizing the power of the gods to myself. Raptum imperium, this is what you have brought me.",0);
	add_dialog_str(3,"_But no! Putidus is not a god! I need not offer my bare back to his ravaging teeth without presenting strong resistance!_ Faustulus stops for a moment and looks directly at you. _I will help you,_ he says. _I will help you defeat Putidus._",0);
	add_dialog_str(4,"He stretches his arms out. _I feel myself already falling out from his corrupting influence. I can speak properly again, as I used to before I ever met that man. I feel unburdened.",0);
	add_dialog_str(5,"_You must go and attack Putidus. But before you go, I must explain a few things._",0);
	set_flag(5,12,run_dialog(1));
	end();
break;